package com.mao.shiro_jsp.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 小毛同学
 * @version 1.0
 * @data 2021/12/30 10:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String salt;

    // 一个用户对应的角色集合
    private List<Role> roles;
}
